import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/home/index.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login/index.vue')
    },
	{
	  path: '/register',
	  name: 'register',
	  component: () => import('../views/register/index.vue')
	},
	{
	  path: '/userinfo',
	  name: 'userinfo',
	  component: () => import('../views/userinfo/index.vue')
	},
	{
	  path: '/detail',
	  name: 'detail',
	  component: () => import('../views/detail/index.vue')
	},
	{
	  path: '/root',
	  name: 'root',
	  component: () => import('../views/root/index.vue')
	}
  ]
})

export default router
